package org.example;


import lombok.extern.slf4j.Slf4j;
import org.example.annotation.RpcServerScan;
import org.example.registery.impl.LocalServerRegistryImpl;
import org.example.utils.NettyServiceUtils;

/**
 * @description: 服务的提供者
 * @author: feixiang.li
 * @date: 2025-01-02 22:10
 */
@Slf4j
@RpcServerScan("org.example")
public class RpcServer {

    /**
     * 启动服务
     *
     * @param args 启动参数
     */
    public static void main(String[] args) {
        // 启动服务端
        NettyServiceUtils nettyServiceUtils = new NettyServiceUtils("127.0.0.1", 9999, new LocalServerRegistryImpl(),
                RpcServer.class);
        nettyServiceUtils.start();

    }
}
